package com.superjson.showpro.service.impl;

import com.superjson.showpro.base.GenericServiceImpl;
import com.superjson.showpro.dao.ResumeDao;
import com.superjson.showpro.entity.Resume;
import com.superjson.showpro.service.ResumeService;
import com.superjson.showpro.shared.result.Result;
import com.superjson.showpro.shared.result.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ResumeServiceImpl extends GenericServiceImpl<Resume> implements ResumeService {

    private ResumeDao resumeDao;

    @Autowired
    public ResumeServiceImpl(ResumeDao resumeDao) {
        super(resumeDao);
        this.resumeDao = resumeDao;
    }

    @Override
    public Result saveResume(Resume resume) {
        resumeDao.save(resume);
        return ResultUtil.buildSuccess();
    }
}